package com.zxy.supplier_system.server.entity

import jakarta.persistence.*
import java.io.Serializable

@Entity
@IdClass(MarketShoppingGuide.UnionId::class)
class MarketShoppingGuide {

    data class UnionId(
        var market:Int? = null,
        var employee:Int? = null
    ) : Serializable

    @Id
    @ManyToOne
    @JoinColumn
    lateinit var market: Market

    @Id
    @JoinColumn
    @ManyToOne
    lateinit var employee:Employee

}